<?php 
	if (substr_count($data->path, ',') == 1){
?>
<div class = "view">
<?php
		echo CHtml::link(CHtml::encode($data->name), array('view', 'id'=>$data->id)); 
?>
</div>
<?php 
		}
	else{
?>
<span style = "margin: 0 5px;">
<?php 
		echo CHtml::link(CHtml::encode($data->name), array('view', 'id'=>$data->id));
?>
</span>
<?php 
	}
?>